package com.hulk.hyena.common.constant.emnus;

import com.google.common.base.Objects;

public enum ArchivedFlag {
	
	N("N", "未归档"),
	Y("Y", "已归档");
 	
	private String value;

	private String desc;

	ArchivedFlag(String value, String desc) {
		this.value = value;
		this.desc = desc;
	}

	public static String explain(String value) {
		for (ArchivedFlag obj : ArchivedFlag.values()) {
			if (Objects.equal(value, obj.value)) {
				return obj.desc;
			}
		}
		return value;
	}
	
	public String getValue() {
		return value;
	}

	public String getDesc() {
		return desc;
	}
	@Override
	public String toString() {
		return this.value;
	}

}
